package com.spring.servlet;

import org.springframework.web.bind.annotation.RequestMapping;

import javax.jws.WebService;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebService
public class MyServlet extends HttpServlet {
    protected void doGet(HttpServletRequest request, HttpServletResponse response){
        doPost(request,response);
    }
    protected void doPost(HttpServletRequest request, HttpServletResponse response){
        System.out.println("name>>>"+request.getParameter("name"));
    }
}
